package com.techblor.serviceconsumerfeign.api;

import com.techblor.serviceconsumerfeign.client.ServiceConsumerFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Feign服务消费者控制层
 */
@RestController
public class ServiceConsumerFeignApi {

    @Autowired
    private ServiceConsumerFeignClient serviceConsumerFeignClient;

    @GetMapping(value = "/serviceProviderData")
    public String serviceProviderData(){
        String result = this.serviceConsumerFeignClient.serviceProviderData();
        return result;
    }

}
